package cn.guozeyiblog.blog;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.webkit.WebChromeClient;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.LinearLayout.LayoutParams;

public class Article extends Activity{
private WebView web;
  @SuppressLint("NewApi")
@Override
protected void onCreate(Bundle savedInstanceState) {
	// TODO Auto-generated method stub
	  requestWindowFeature(Window.FEATURE_NO_TITLE);
	  super.onCreate(savedInstanceState);
	  web = new WebView(getApplicationContext());
	  LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.MATCH_PARENT);
	  addContentView(web, params);
	  Intent intent = getIntent();
	  String url = intent.getExtras().getString("Uri", "http://www.guozeyiblog.cn");
	  web.loadUrl(url);
	  web.setWebViewClient(new WebViewClient());
	  web.setWebChromeClient(new WebChromeClient(){
		  
	  });
}
}
